package evo.springboot.service.impl;

import evo.springboot.mapper.StudentMapper;
import evo.springboot.model.Student;
import evo.springboot.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentMapper studentMapper;


    @Transactional
    public Integer updateStudentById(Student student) {
        int result = studentMapper.updateByPrimaryKey(student);
        int a = 10/0;
        return result;
    }
}
